package net.zoneland.knowledge.service.impl;

import java.util.List;

import net.zoneland.knowledge.dao.RobotInfoMapper;
import net.zoneland.knowledge.model.RobotInfo;
import net.zoneland.knowledge.model.RobotInfoExample;
import net.zoneland.knowledge.service.RobotInfoBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * .
 *
 * @author: bcc
 * 2021/6/2
 */
@Service
public class RobotInfoBizImpl implements RobotInfoBiz {

    @Autowired
    private RobotInfoMapper robotInfoMapper;

    @Override
    public List<RobotInfo> getRobotByCmpDn(final String cmpDn) {
        final RobotInfoExample example = new RobotInfoExample();
        example.createCriteria().andCmpDnEqualTo(cmpDn);
        return robotInfoMapper.selectByExample(example);
    }

    @Override
    public List<RobotInfo> getRobotByDeptDn(final String deptDn) {
        final RobotInfoExample example = new RobotInfoExample();
        example.createCriteria().andDeptDnEqualTo(deptDn);
        return robotInfoMapper.selectByExample(example);
    }
}
